package maintain

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/maintain/v1"
)

func (c *ControllerV1) DatabaseList(ctx context.Context, req *v1.DatabaseListReq) (res *v1.DatabaseListRes, err error) {
	res = &v1.DatabaseListRes{}
	res.Rows, err = service.Database().List(ctx)
	return
}
